package com.atjava.nebula.core.tablexml.view;

import java.io.Serializable;
import java.util.List;

import com.atjava.jox.annotation.ClassProps;
import com.atjava.jox.annotation.FieldProps;
import com.atjava.jox.annotation.FieldProps.ElementType;

@ClassProps(alias="property")
public class Property implements Serializable{

	@FieldProps
	private String label;
	
	@FieldProps
	private String name;
	
	@FieldProps
	private String type;
	
	@FieldProps
	private String cond;
	
	@FieldProps
	private String ref;
	
	@FieldProps
	private String readonly;
	
	@FieldProps
	private String disabled;
	
	@FieldProps
	private String placeholder;
	
	@FieldProps(alias = "default")
	private String defaultValue;
	
	@FieldProps(type = ElementType.ELEMENT)
	private Tree tree;
	
	@FieldProps(type = ElementType.ELEMENTLIST)
	private List<Validate> validates;
	
	@FieldProps(type = ElementType.ELEMENT)
	private Select select;
	
	@FieldProps(type = ElementType.ELEMENT)
	private Radio radio;
	
	@FieldProps(alias = "auto-complete",type = ElementType.ELEMENT)
	private AutoComplete autoComplete;

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCond() {
		return cond;
	}

	public void setCond(String cond) {
		this.cond = cond;
	}

	public static void main(String[] args) {
		
	}

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public Tree getTree() {
		return tree;
	}

	public void setTree(Tree tree) {
		this.tree = tree;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getReadonly() {
		return readonly;
	}

	public void setReadonly(String readonly) {
		this.readonly = readonly;
	}

	public String getDisabled() {
		return disabled;
	}

	public void setDisabled(String disabled) {
		this.disabled = disabled;
	}

	public List<Validate> getValidates() {
		return validates;
	}

	public void setValidates(List<Validate> validates) {
		this.validates = validates;
	}

	public Select getSelect() {
		return select;
	}

	public void setSelect(Select select) {
		this.select = select;
	}

	public Radio getRadio() {
		return radio;
	}

	public void setRadio(Radio radio) {
		this.radio = radio;
	}

	public String getPlaceholder() {
		return placeholder;
	}

	public void setPlaceholder(String placeholder) {
		this.placeholder = placeholder;
	}

	public AutoComplete getAutoComplete() {
		return autoComplete;
	}

	public void setAutoComplete(AutoComplete autoComplete) {
		this.autoComplete = autoComplete;
	}

}
